{% macro gen_table(pack_sets) %}
    <table id="user-info-table" class="table table-bordered table-hover table-condensed table-striped">
        <thead>
            <tr>
                <th>ID</th>
                <th>套餐名</th>
                <th>现价</th>
                <th>原价</th>
                <th>汇币</th>
                <th>套餐有效日</th>
                <th>标签</th>
                <th>创建时间</th>
                <th>更新时间</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {% for set in pack_sets %}
            <tr>
                <td>{{ set.id }}</td>
                <td>{{ set.name }}</td>
                <td>{{ set.price }}</td>
                <td>{{ set.ori_price }}</td>
                <td>{{ set.bid_point }}</td>
                <td>{{ set.days }}</td>
                <td>{{ set.tag }}</td>
                <td>{{ set.created_datetime }}</td>
                <td>{{ set.updated_datetime }}</td>
                <td>
                    <a
                      class="btn btn-xs btn-primary"
                      href="{{url_for('op_bp.pack_set_edit', set_id=set.id)}}"
                      name="set-info"
                    >编辑</a><br>
                </td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
{% endmacro %}
